package com.hy.pojo.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 套餐订单表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_order")
public class AppOrder {
    public static final String ORDERTYPE_TELEPHONE = "电话预约";
    public static final String ORDERTYPE_WEIXIN = "微信预约";
    public static final String ORDERSTATUS_YES = "已到诊";
    public static final String ORDERSTATUS_NO = "未到诊";
    public static final String ZHIFU_YES = "已支付";
    public static final String ZHIFU_NO = "未支付";
    public static final String ZHIFU_CHAOSHI = "支付超时";
    
    private Integer id; // 订单ID

    @TableField("orderName")
    private String orderName; // 预约人
    @TableField("orderDate")
    private String orderDate; // 预约日期
    @TableField("orderType")
    private String orderType; // 预约类型
    @TableField("orderStatus")
    private String orderStatus; // 预约状态（是否到诊）
    @TableField("setmeal_id")
    private Integer setmealId; // 餐套ID
    @TableField("setmeal_name")
    private String setmealName; // 预约餐套名称
    @TableField("order_member")
    private String orderMember; // 订单编号
    @TableField("phone")
    private String phone; // 预约人电话

    @TableField("zfStatus")
    private String zfStatus;

    @TableField(exist = false)
    private Float amount;

}